package com.dodo.blog.ui.component.simple;

import com.dodo.blog.ui.component.container.Container;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
public class Label
        extends Container
{
    private static final long serialVersionUID = 1L;

    public Label( String text )
    {
        this( text, null );
    }

    public Label( String text, String labelFor )
    {
        super( Tag.LABEL );

        if ( labelFor != null )
        {
            setAttribute( "for", labelFor );
        }

        setInnerHtml( text );
    }
}
